<?php
/**
 * @title: 错误码统一维护
 * @desc:
 */
namespace app\common\tools;

class ReturnCode{
    const SUCCESS = [0, "操作成功"];
    const ERROR = [-1, "出错"];

    /**
     * 登录错误码
     */
    const USERNAME_NOT_EXIST = ["username_not_exist", "缺少用户名!"];
    const PASSWORD_NOT_EXIST = ["password_not_exist", "缺少密码!"];
    const LOGIN_ERROR = ["login_error", "账户或密码不正确"];
    const ACCOUNT_STOP = ["account_stop", "账户已被停用"];
    const TOKEN_INVALID = ["token_invalid", "令牌无效"];
    const TOKEN_NULL = ["token_null", "令牌没有提交"];
    const LOGIN_SUCCESS = ["login_success", "登录成功"];
    const LOGOUT_SUCCESS = ["logout_success", "退出成功"];


    const FORBIDDEN_ACTION = ["forbidden_action", "非常抱歉，您没有权限这么做！"];


    const SYSTEM_ERROR = [10010, "系统错误"];
    const UNKNOWN = [10010, "未知错误"];


}